<?php      

    require_once ($application_folder."/libraries/MY_Controller.php"); 
    class Navigator extends MY_Controller {

        var $data = array();

        function Navigator() {
            parent::MY_Controller(); 
            //$this->setuserdata();
        }

        function index() {
            show_404();
        } 

        function seo_data($rows){

            foreach ($rows as $row)
            {
                $this->data['seo_title'] = $row->title;
                $this->data['seo_description']=$row->description;
                $this->data['seo_keywords']=$row->keywords;
            }

        }        

        function navigate($page)
        {
            $this->layout->view($page, $this->data);            
        }

        function setuserdata(){
            $newdata = array(
            'ac_id'  => 3,
            'fname'  => 'Bojana',
            'lname'  => 'Kukić',
            'email'     => 'info.logicsolution.rs',
            'dateexpires' => '2010-12-09 11:31:39',
            'acounttype_id' => 3,
            'acount_descripstion' => 'NALOG ZA KORPORACIJE',
            'country_ccode' => 'RS'            
            );

            $this->session->set_userdata($newdata);
        }
        
    }
?>